package dba.example.repos

import org.springframework.data.jpa.repository.JpaRepository
import org.springframework.data.jpa.repository.Query
import dba.example.entities.Company
import org.springframework.data.domain.Pageable

trait CompanyRepository extends JpaRepository[Company, Integer] {

  @Query ("SELECT c FROM Company c")
  def listByName (pageable: Pageable): java.util.List[Company]

}
